package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._09建造者模式._1基本代码;

//具体建造者2
class ConcreteBuilder2 extends Builder {
    private Product product = new Product();
    public void buildPartA(){
        product.add("部件X");
    }
    public void buildPartB(){
        product.add("部件Y");
    }

    public Product getResult(){
        return product;
    }
}